 package tools;


import client.MapleClient;
import com.alee.laf.WebLookAndFeel;
import com.alee.laf.combobox.WebComboBox;
import com.alee.laf.label.WebLabel;
import com.alee.laf.panel.WebPanel;
import com.alee.laf.rootpane.WebFrame;
import com.alee.laf.text.WebTextArea;

import javax.swing.*;
import javax.swing.plaf.FontUIResource;
import java.awt.*;
import java.awt.event.ActionEvent;
import java.util.Vector;


















 public class DebugUI extends WebFrame {
   static {
     try {
/*  23 */       FontUIResource fontUIResource = new FontUIResource("微软雅黑", 0, 12);
/*  24 */       WebLookAndFeel.globalTextFont = new FontUIResource("Consolas", 0, 12);
/*  25 */       WebLookAndFeel.globalControlFont = fontUIResource;
/*  26 */       WebLookAndFeel.globalTitleFont = fontUIResource;
/*  27 */       UIManager.setLookAndFeel((LookAndFeel)new WebLookAndFeel());
/*  28 */     } catch (UnsupportedLookAndFeelException e) {
/*  29 */       e.printStackTrace();
     }
   }
   private MapleClient c;

   public DebugUI() {
/*  35 */     super("DebugUI");

/*  37 */     setPreferredSize(new Dimension(500, 400));

/*  39 */     final WebTextArea packetTextArea = new WebTextArea();
/*  40 */     final WebLabel statusLabel = new WebLabel();
/*  41 */     final Vector<String> historylist = new Vector<>();
/*  42 */     final WebComboBox historyCombox = new WebComboBox(historylist);

/*  44 */     historyCombox.addActionListener(new AbstractAction()
         {
           public void actionPerformed(ActionEvent e) {
/*  47 */             packetTextArea.setText(historylist.get(historyCombox.getSelectedIndex()));
           }
         });

/*  51 */     packetTextArea.setLineWrap(true);

/*  53 */     add((Component)new WebPanel(new BorderLayout(5, 5))
         {

         });


































/*  91 */     pack();
/*  92 */     setDefaultCloseOperation(2);
/*  93 */     setLocationRelativeTo(null);
/*  94 */     setVisible(true);
   }





   public MapleClient getC() {
/* 102 */     return this.c;
   }




   public void setC(MapleClient c) {
/* 109 */     this.c = c;
/* 110 */     if (c.getPlayer() != null)
/* 111 */       setTitle("玩家: " + c.getPlayer().getName() + " - 封包测试"); 
   }
 }


/* Location:              C:\PGX\Server.jar!\tools\DebugUI.class
 * Java compiler version: 8 (52.0)
 * JD-Core Version:       1.1.3
 */